/*
@(#)ErrorCodeEnum   2023-04-18
 
Copyright (c) 2011-2023 杭州湖畔网络技术有限公司 
保留所有权利 
本软件为杭州湖畔网络技术有限公司所有及包含机密信息，须遵守其相关许可证条款进行使用
Copyright (c) 2011-2023 HUPUN Network Technology CO.,LTD.
All rights reserved.
This software is the confidential and proprietary information of HUPUN
Network Technology CO.,LTD("Confidential Information").  You shall not
disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement you entered into with HUPUN.
Website：http://www.hupun.com
*/
package org.obp.auth.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.obp.core.exception.I18nExcEnum;

/**
 * @author: Jackey 2023/4/18
 */
@Getter
@AllArgsConstructor
public enum AuthExceptionEnum implements I18nExcEnum {

    PLATFORM_UNKNOWN(400, "未知的客户端", "The platform is unknown."),
    PLATFORM_INCONSISTENT(400, "Token与客户端不一致", "The platform is inconsistent with token."),
    MOBILE_INCORRECT(400, "请输入有效的手机号码", "Please enter valid mobile number."),
    ACCOUNT_NOT_LOGIN(401, "账号登录已过期", "Account is not logged in."),
    ACCOUNT_OR_PASSWD_ERROR(403, "用户名或密码错误", "The account number or password was entered incorrectly."),
    ACCOUNT_IS_FROZEN(403, "账号已被禁用，请联系管理员", "The account is frozen, please contact admin."),
    ACCOUNT_HAS_NO_PERMISSION(403, "账号没有权限，请联系管理员", "The account has no permission, please contact admin."),
    ACCOUNT_HAS_NO_ROLE(408, "账号未分配角色，请联系管理员", "The account does not belong to a role, please contact admin."),
    OPERATION_TOO_FREQUENT(500, "操作过于频繁，请稍后再试", "The operation is too frequent, please try again later."),
    CODE_SEND_FAILURE(500, "验证码发送失败，请稍后再试", "Message send error, please try again."),
    CODE_TYPE_IS_INVALID(500, "验证码发送类型异常", "Code type is invalid."),
    CODE_IS_ERROR(500, "验证码错误，请重新输入", "Incorrect code, enter it again."),
    CODE_IS_INVALID(500, "验证码已过期，请返回重新输入", "The verification code has expired, please return and try again."),
    CODE_ERROR_LIMIT(500, "输入错误超出限制，请重新发送", "The input error exceeds the limit, please resend."),
    ACCOUNT_HAS_REGISTER(500, "账号已被使用，请重新输入", "Account has already been used, please try again."),
    ACCOUNT_HAS_BEEN_USED(500, "账号已经存在，请重新添加", "Account has already been used by another company, please try again."),
    PASSWD_CANNOT_DEFAULT(500, "不能重置为默认密码", "Cannot use default password."),
    ROLE_HAS_BIND_ACCOUNT(500, "角色存在已分配的账号，无法删除", "The role has a bind account and cannot be deleted."),
    MENU_HAS_BIND_CHILDREN(500, "菜单存在关联的子菜单，无法删除", "The menu has children and cannot be deleted.");

    public final int code;
    private final String chinese;
    private final String english;

}